<extend name='Yg/index' />
<block name='main'>
<div id="page-wrapper">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h2 class="page-header">
                            留言板管理
                        </h2>
                        <ol class="breadcrumb">
                            <li class="active">
                                <i class="fa fa-dashboard"></i> 您的位置 => 建议箱
                            </li>
                        </ol>
                    </div>
                </div>
                <form class="form-horizontal" action="<{:U('Jyx/index')}>" method="get">
                            <div class="form-group">
                                 <label for="inputPassword3" class="col-sm-1 control-label">留言人：</label>
                                <div class="col-sm-3">
                                    <select class="form-control" id="sel" name="g">
                                        <option value=''>全部</option>
                                    <volist name='talkid' id='v'>
                                        <option value=<{$v.mtalkid}>><{$v.mtalkid}></option>
                                    </volist>
                                    </select>
                                </div>
                                <div class="col-sm-1">
                                     <button type="submit" class="btn btn-default">查询</button>
                                </div>
                            </div>
                        </form>
                <!-- /.row -->
                <table class="table table-striped table-bordered table-hover">
            <thead>
                <tr align='left' bgcolor="#D9EDF7">
                    <th>ID</th>
                    <th>留言人</th>
                    <th>留言内容</th>
                    <th>留言时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="lista" id="vo" >
                <tr>
                    <td><{$vo.id}></td>
                    <td><{$vo.mtalkid}></td>
                    <td><{:htmlspecialchars_decode($vo['mcontent'])}></td>
                    <td><{:date('Y-m-d H:i:s',$vo['maddtime'])}></td>
                    <td>
                        <a href="<{:U('Jyx/del',array('id'=>$vo['id']))}>">删除</a>
                    </td>
                </tr>
            </volist>
            </tbody>
            
            
        </table>
                <div class="pagination"><{$page}></div>        
            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->
</block>